/******************************************************************************
**
** Copyright 2011 Motorola Solutions Inc. All rights reserved.
**
** File name: 	utimer.c
**
** Description:	Timer-counter functionality related to RTOS Unit
**				Tests execution. Targets supported:
**				- ATXmega32D4 (HW)
**
** Change history:
**	
** 11/20/2011 - AK - File created. 
** 
******************************************************************************/
#ifndef UTEST_H__
#define UTEST_H__

#if defined (__AVR_ATxmega32D4__)

#define CPUCLK 8000000L     

#define SYSTEM_TIMER_VECTOR 	TCC0_OVF_vect
#define USER_TIMER_VECTOR   	TCD0_OVF_vect
#define USER_TIMER_1_VECTOR   	TCD0_OVF_vect
#define USER_TIMER_2_VECTOR   	TCE0_OVF_vect

#define SYSTEM_TIMER			TCC0
#define USER_TIMER				TCD0
#define USER_TIMER_1			TCD0				// alias for USER_TIMER
#define USER_TIMER_2			TCE0

#include "utimer.h"
#include "uhwinit.h"

#endif // __AVR_ATxmega32D4__

#define	NOTDEFINED	0
// Initial TASK states
#define RESUMED		1
#define SUSPENDED	2
#define POSTPONED	3

/*
** The service below are from UTEST.S
*/
extern void UTST_FillRegisters( void );

#endif /* CONFIG_H__ */

